﻿using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

namespace CommonManagement
{
    /// <summary>
    /// 温湿度信息
    /// </summary>
    public class TempInfo : Entity<int>
    {
        /// <summary>最高温度</summary>
        public int MaxTemperature { get; protected set; }

        /// <summary>最低温度</summary>
        public int MinTemperature { get; protected set; }

        /// <summary>当前天气</summary>
        public string Weather { get; protected set; }

        /// <summary>当前温度</summary>
        public int Temperature { get; protected set; }

        /// <summary>体感温度</summary>
        public int ApparentTemperature { get; protected set; }

        /// <summary>湿度</summary>
        public int Humidity { get; protected set; }

        /// <summary>天气信息</summary>
        [ForeignKey("Id")]
        public Weather Forecast { get; protected set; }

        private TempInfo() { }
    }
}